<?php
namespace app\service;

use app\model\BannerModel;
use const support\CORRECT;

class BannerService
{

    //获取轮播图列表
    public static function lists(): array
    {
        return BannerModel::where('status',CORRECT)
            ->orderBy('sort','desc')->select([
                'banner_title','banner_icon','banner_type','banner_value'
            ])->get()->toArray();
    }

}